module.exports = {
  path: 'forum',
  indexRoute: {
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/forum/index').default)
      })
    }
  },
  childRoutes: [{
    path: 'detail/:id',
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/forum/detail').default)
      })
    }
  },{
    path: 'discuss/:id',
    getComponent(nextState, cb) {
      require.ensure([], (require) => {
        cb(null, require('../views/forum/discuss').default)
      })
    }
  }]
}